<style>
#preporukeAdmin label{
	display:block;
	width:60px;
	float:left;
	padding-top:7px;
	text-align:right;
}
#preporukeAdmin label.checkbox{
	padding-top:3px;
}
#preporukeAdmin input[type=submit]{
	float:right;
}
#preporukeAdmin ol#preporukeAdminSearchList{
	width:320px;
	max-height:400px;
	overflow:auto;
	margin:2px 0px 0px 0px;
	padding:0px 0px 0px 0px;
	list-style-type:none;
}
#preporukeAdmin ol#preporukeAdminSearchList li{
	margin:0px;
	padding:0px;
	border-bottom:1px dotted #aaa;
	clear:both;
	float:left;
	width:305px;
	overflow:hidden;
}
#preporukeAdmin ol#preporukeAdminSearchList li.head{
	width:285px;
	background:{{$highlight}};
	color:{{$highlighttext}};
	font-weight:bolder;
	text-transform:uppercase;
	padding:4px 10px;
}
#preporukeAdmin ol#preporukeAdminSearchList li a{
	display:block;
	padding:2px 4px;
	text-decoration:none;
	color:#000;
	float:left;
}
#preporukeAdmin ol#preporukeAdminSearchList li#current,
#preporukeAdmin ol#preporukeAdminSearchList li a:hover{
	background:#ccc url(gui/arrow_right.gif) no-repeat 98% center;
	color:#333;
}
#preporukeAdmin ol#preporukeAdminSearchList li a .komid{
	display:block;
	float:left;
	text-align:right;
	width:50px;
	margin-right:5px;
	font-weight:bolder;
}
#preporukeAdmin ol#preporukeAdminSearchList li a .komname{
	float:left;
	width:205px;
}
#preporukeAdmin ol#preporukeAdminSearchList li a .komProfileLink{
	width:15px;
	height:15px;
	overflow:hidden;
	text-indent:-100em;
	float:left;
	cursor:pointer;
	background:url(gui/icons/link.gif) no-repeat center center;
}
#preporukeAdmin ol#preporukeAdminSearchList li a .komProfileLink:hover{
	background:url(gui/icons/link_hover.gif) no-repeat center center;
}
#preporukeAdmin ol#preporukeAdminSearchList li a .komnum{
	float:right;
	width:22px;;
}

#preporukeAdmin ul#preporukaAdminPrepList{
	width:600px;
	max-height:650px;
	overflow:auto;
	list-style-type:none;
	margin:0px;
	padding:0px;
}
#preporukeAdmin ul#preporukaAdminPrepList li{
	margin:0px 0px 10px 0px;
	padding:5px;
	border-bottom:1px dotted #aaa;
}
#preporukeAdmin ul#preporukaAdminPrepList li.noactive:hover{
	-moz-opacity:0.5;
}
#preporukeAdmin ul#preporukaAdminPrepList li.head{
	background:{{$highlight}};
	color:{{$highlighttext}};
	text-transform:uppercase;
	font-weight:bolder;
}
#preporukeAdmin ul#preporukaAdminPrepList li h2{
	margin:0px;
	padding:0px 0px 0px 30px;
	background-repeat:no-repeat;
	background-position:0px 0px;
}
#preporukeAdmin ul#preporukaAdminPrepList li .date{
	float:right;
}
#preporukeAdmin ul#preporukaAdminPrepList li .sign{
	float:right;
	font-weight:bolder;
	font-family:"Trebuchet MS", Arial;
	font-style:italic;
}
#preporukeAdmin ul#preporukaAdminPrepList ul.KomitentPreporukeList li{
	display:none;
}
#preporukeAdmin ul#preporukaAdminPrepList ul.KomitentPreporukeList li ul li{
	border-bottom:none;
	padding:5px 0px 0px 23px;
	margin:0px;
}
#preporukeAdmin ul li.head input.add{
	width:20px;
	height:20px;
	float:right;
	background:url(gui/icons/new.gif) no-repeat center center;
	border:none;
	cursor:pointer;
}
</style>
<div id="preporukeAdmin">
	<div style="float:left;">
		<div class="area" style="width:300px;">
			<h2>Pretraga preporuka</h2>
			<form action="javascript:void(0)" onsubmit="submitForm(this,'preporuke.php','POST','setContent')">
				<label for="komitent">Komitent:</label><input type="text" name="komitent" id="komitent" value="{{$filter_komitent}}" /><br clear="all" />
				<label for="delatnost">Delatnost:</label>
				<select name="delatnost" id="delatnost" style="width:200px;">
					<option value="-1">---</option>
					{{%loop start delatnost_id}}
					<option value="{{$delatnost_id}}" {{$delatnost_selected}}>{{$delatnost_ime}}</option>
					{{%loop end}}
				</select><br clear="all" />
				<label for="tip_preporuke">Tip:</label>
				<select name="tip_preporuke" id="tip_preporuke">
					<option value="-1">---</option>
					{{%loop start filter_tip_id}}
					<option value="{{$filter_tip_id}}" {{$filter_tip_selected}}>{{$filter_tip_name}}</option>
					{{%loop end}}
				</select><br clear="all" />
				
				<label for="tema_preporuke">Tema:</label>
				<select name="tema_preporuke" id="tema_preporuke">
					<option value="-1">---</option>
					{{%loop start filter_tema_id}}
					<option value="{{$filter_tema_id}}" {{$filter_tema_selected}}>{{$filter_tema_name}}</option>
					{{%loop end}}
				</select><br clear="all" />
				<label for="kontrola">Aktivne:</label>
				<select name="kontrola" id="kontrola">
					<option value="-1">---</option>
					{{%loop start kontrola_id}}
					<option value="{{$kontrola_id}}" {{$kontrola_selected}}>{{$kontrola_name}}</option>
					{{%loop end}}
				</select>
				<label for="komentar" style="width:auto; margin-left:10px;">Ima komentar:</label>
				<select name="komentar" id="komentar">
					<option value="-1">---</option>
					{{%loop start komentar_id}}
					<option value="{{$komentar_id}}" {{$komentar_selected}}>{{$komentar_name}}</option>
					{{%loop end}}
				</select><br clear="all" />
				<input type="submit" value="traži" name="submit" id="submit" />
			</form>
		</div><br clear="all" />
		<ol class="area" id="preporukeAdminSearchList">
			<li class="head">rezultati pretrage <span title="broj komitenata">[{{$kom_count}}]</span></li>
			{{%loop start kom_id}}
			<li>
				<a href="javascript:void(0)" onclick="setCurrentLi(this); preporukeAdminShowPreps('{{$kom_id}}')">
					<span class="komid">{{$kom_id}}.</span>
					<span class="komname">{{$kom_name}}</span>
					<span class="komProfileLink" title="podaci komitenta..." onclick="blankTarget('LoadRSDoc(\'komitenti.php?a=displayOne&id={{$kom_id}}\',\'setContent\')'); event.stopPropagation();">p</span>
					<span class="komnum" title="broj preporuka">[{{$kom_num}}]</span>
				</a>
			</li>
			{{%loop end}}
		</ol>
	</div>
	<div style="float:left; margin:0px 0px 0px 2px">
		<ul id="preporukaAdminPrepList" class="area">
			<li class="head">
				{{$admin_comment_start}}
				<input type="button" class="add" onclick="preporukaNew(this,'{{$kom_id}}')" value="" title="dodaj preporuku..." />
				{{$admin_comment_end}}
				
				prikaz preporuka
			</li>
			{{$edit_form}}
			{{$edit_comm_form}}
			{{$preporuke}}
		</ul>
	</div>
</div>